var dropDiv = document.getElementById('drop_div');

dropDiv.addEventListener('dragenter',function(){
    event.preventDefault();
},false);
dropDiv.addEventListener('dragover',function(){
    event.preventDefault();
},false);

dropDiv.addEventListener('drop', function(event){

    var fileReader = new FileReader();
    fileReader.onload = function(ev){
        var result = ev.target.result;
        document.body.innerHTML = '<pre>'+result+'</pre>';
        console.log(result);
    };
    fileReader.readAsDataURL(event.dataTransfer.files[0]);
    event.preventDefault();
}, false);
